from applications.extensions import db
import datetime
class GroupKeyword(db.Model):
    __tablename__='chat_group_keyword'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='ID')
    Gid=db.Column( db.Integer, comment='群id' )
    GroupUserName = db.Column(db.String(200), comment='群id',default='')
    Keyword=db.Column(db.String(100), comment='关键词',default='')
    Content=db.Column( db.String(256), comment='回复内容', default='' )
    Sort=db.Column( db.Integer, comment='排序' ,default='0')
    MsType = db.Column(db.String(20), comment='类型【TEXT, MAP, CARD, NOTE, SHARING, PICTURE,RECORDING, VOICE, ATTACHMENT, VIDEO, FRIENDS, SYSTEM, MINIPROGRAM】',default='TEXT')
    Create_time = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')
